#ifndef __G4_OPT_H__
#define __G4_OPT_H__

#include <stdint.h>
#include <stdbool.h>

typedef struct Netinfo_ {
  int16_t is_dial;
  int16_t rssi;
  char oper[8];
  char number[16];
  char imei[16];
  char iccid[32];
} Netinfo_t;

int NetOpt_GetInfo(Netinfo_t *info);
bool NetOpt_IsCegLink();
int NetOpt_SetTrafficCfg(uint8_t open, uint8_t clear, uint16_t interval_in_sec);
int NetOpt_GetTrafficCfg(uint64_t *bytes_sent, uint64_t *bytes_recv);
int NetOpt_OpenRf(bool open);
bool NetOpt_IsRfOpen();
int NetOpt_SendAtCmd(char* cmd, char* response, uint32_t size);
void NetOpt_EnableRndis();
uint32_t NetOpt_GetCegTime();
//int g4_sim_hotplug_init(bool enable);
void NetOpt_NtpProc();
void NetOpt_SetFlashParam();
//ntp
int NetOpt_GetOperator(char *opt, uint8_t len);
int NetOpt_GetIccid(char *iccid, uint8_t len);
int NetOpt_InitNetCallback();
int NetOpt_UnInitNetCallback() ;

#endif